package com.cn.study.common;

/**
 * @author mjy
 * @date 2021/12/29
 * @description
 */
public enum ResultCode {

    SUCCESS(1000, "操作成功"),
    FAILED(1001, "响应失败"),
    ENCRYPT_VERIFY(2000, "认证失败"),
    TOKEN_OVERDUE(3001, "token过期"),
    TOKEN_CONFLICT(3002, "token冲突");
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ResultCode() {
    }

}

